package com.fcat.common.user.service;

import com.fcat.springboot.mybatis.service.TsuantoneBaseService;
import com.fcat.common.user.entity.Permission;
import com.fcat.common.user.vo.PermissionVO;

import java.util.List;

public interface PermissionService extends TsuantoneBaseService<Permission> {

    List<Permission> getListByRoleIds(List<Long> longs);

    List<PermissionVO> getAll();

    List<Permission> getPermissionByRoleId(Long roleId);

    List<PermissionVO> getTree(List<PermissionVO> list,Long parentId);

    List<Permission> getListByUserId(Long id);
}